import request from "@/utils/request";
import { API_BASE_URL, PAGE_NUM, PAGE_SIZE } from '@/constants'

export function getBlockList(page, size) {
  page = page || PAGE_NUM;
  size = size || PAGE_SIZE;

  return request(API_BASE_URL + 'blockchain/blocklist/?pageNum=' + page + '&pageSize=' + size , {
    method: 'GET'
    });
}

export function getTransactionList(page, size) {
  page = page || PAGE_NUM;
  size = size || PAGE_SIZE;

  return request(API_BASE_URL + 'blockchain/transactionlist/?pageNum=' + page + '&pageSize=' + size, {
    method: 'GET'
  });
}
